

<div class="form-group">
    <label class="col-sm-2 control-label" for="field-1">名称</label>
    <div class="col-sm-10">
        <input type="text" name="productType.name" class="form-control" placeholder="请输入类别名称"
               data-validate="required" value="${productType?.name}">
    </div>
</div>

<div class="form-group-separator"></div>

<div class="form-group">
    <label class="col-sm-2 control-label" for="field-2">排序号</label>

    <div class="col-sm-10">
        <input type="text" name="productType.sort" class="form-control" placeholder="请输入顺序号"
               data-validate="number" value="${productType?.sort}">
    </div>
</div>
<div class="form-group-separator"></div>

<div class="form-group">
    <label class="col-sm-2 control-label" for="field-3">类型图片</label>
    <div class="col-sm-10">
        <p style="color: red">注:只能上传5:1分辨率的图片</p>
        <input type="file" class="form-control" name="image" data-validate="${productType?.image == null || productType?.image == '' ? 'required' : ''}">
    </div>
</div>

#{if productType?.image != null && productType?.image != ''}
<div class="form-group">
    <label class="col-sm-2 control-label" for="field-3"></label>
    <div class="col-sm-10">
        <img src="${productType?.image}" style="width: 100px">
    </div>
</div>

#{/if}
<div class="form-group-separator"></div>
<div class="form-group">
    <label class="col-sm-2 control-label" for="field-2">备注</label>
    <div class="col-sm-10">
        <textarea class="form-control" cols="5" id="field-5" name="productType.remark" placeholder="请输入备注">${productType?.remark}</textarea>
    </div>
</div>
<div class="form-group-separator"></div>
<div class="form-group">
    <label class="col-sm-2 control-label" for="field-5"></label>

    <div class="col-sm-10">
        <button type="submit" class="btn btn-success">&nbsp;&nbsp;确定&nbsp;&nbsp;</button>
        <button type="reset" class="btn btn-white">&nbsp;&nbsp;重置&nbsp;&nbsp;</button>
        <button type="button" class="btn btn-black" onclick="fanhui('/BS0018/admin/product/type/index')">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>
    </div>
</div>
